package com.audition.thread.day01;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author ADMIN
 * @date 2021/3/8 22:24
 */
public class CachedThreadPoolDemo {
    public static void main(String[] args) {
        ExecutorService service = Executors.newCachedThreadPool();
        for (int i = 0; i < 1000; i++) {

            service.execute(new Task1());
        }

    }
}
